#include "main.h"

#define USART1_LEN 512
typedef struct {
	uint16_t RX_Size;          //receive length
	uint8_t RX_pData[USART1_LEN]; //DMA receive buffer
} USART1_RECEIVETYPE;
extern USART1_RECEIVETYPE Usart1_Type;
extern USART1_RECEIVETYPE usart1_rx;
void USART1_RxIdleCallback(UART_HandleTypeDef *huart);
void usart1_rx_deal(USART1_RECEIVETYPE *usart1_rx);
